package com.example.moments;

import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.example.moments.adapter.ExploreDongtaiAdapter;
import com.example.moments.adapter.Utils;
import com.example.moments.bean.ExploreDongtaiBean;
import com.example.moments.bean.ExplorePostDianzanBean;
import com.example.moments.bean.ExplorePostPinglunBean;
import com.example.moments.listener.Explore_dongtai1_listener;
import com.example.moments.starpMome.MomentsActivity;
import com.example.moments.utils.CustomDotIndexProvider;
import com.example.moments.utils.CustomLoadingUIProvider;
import com.example.moments.utils.GlideSimpleLoader;
import com.example.moments.utils.KeyboardUtil;
import com.example.moments.views.CustomProgressDrawable;
import com.example.moments.views.CustomSwipeRefreshLayout;
import com.example.moments.widget.LikePopupWindow;
import com.example.moments.widget.OnPraiseOrCommentClickListener;

import java.util.ArrayList;
import java.util.List;

import byc.imagewatcher.ImageWatcher;
import byc.imagewatcher.ImageWatcherHelper;

//import com.example.moments.data

public class StartActivity extends AppCompatActivity implements
        View.OnClickListener {

    public  void btnToMomentsSs(View view){
        Intent intent = new Intent(this, com.example.moments.ssmemo.activity.MomentsActivity.class);
        startActivity(intent);
    }

    public ImageWatcherHelper iwHelper;//方式二

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
//        setContentView(R.layout.activity_main);
        setContentView(R.layout.activity_start);

        findViewById(R.id.btnToMomentsStarp).setOnClickListener(this);
        findViewById(R.id.btnToMomentsStart).setOnClickListener(this);

    }


    private static final String TAG = "startActivity";

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.btnToMomentsStarp:
                Log.i(TAG, "startActivity btnToMomentsStarp");
                Intent intent = new Intent(StartActivity.this, MomentsActivity.class);
                startActivity(intent);
                break;
            case R.id.btnToMomentsStart:
                Log.i(TAG, "startActivity MainActivity");
                intent = new Intent(StartActivity.this, MainActivity.class);
                startActivity(intent);
                break;
            default:
                break;
        }

//————————————————
//        版权声明：本文为CSDN博主「ChampionDragon」的原创文章，遵循CC 4.0 BY-SA版权协议，转载请附上原文出处链接及本声明。
//        原文链接：https://blog.csdn.net/xxdw1992/article/details/113103189
    }
}